package org.hishenframework.core.web.controller.admin;

import org.hishenframework.core.web.menu.MenuContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 首页
 * @author didi
 *
 */
@Controller
@RequestMapping(IndexController.PATH)
public class IndexController {
	
	public final static String PATH = "/admin";
	
	@RequestMapping
	public ModelAndView index() {
		ModelAndView mv = new ModelAndView(PATH + "/index");
		mv.addObject("menus", MenuContext.getMenuItems());
		return mv;
	}
	
}